package com.stardust.pojo;
/**
 * 实现试题表的映射
 */

import java.util.Date;

public class Questions {
    private Integer id;
    private Integer type;
    private String title;
    private String answer;
    private Double difficulty;
    private Date createDate;
    private String descr;

    public Questions() {
    }

    public Questions(Integer id, Integer type, String title, String answer, Double difficulty, Date createDate, String descr) {
        this.id = id;
        this.type = type;
        this.title = title;
        this.answer = answer;
        this.difficulty = difficulty;
        this.createDate = createDate;
        this.descr = descr;
    }

    @Override
    public String toString() {
        return "Questions{" +
                "id=" + id +
                ", type=" + type +
                ", title='" + title + '\'' +
                ", answer='" + answer + '\'' +
                ", difficulty=" + difficulty +
                ", createDate=" + createDate +
                ", descr='" + descr + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Double getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(Double difficulty) {
        this.difficulty = difficulty;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }
}
